package com.njit.campuslifeboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njit.campuslifeboot.entity.dto.LifeInfoDTO;
import com.njit.campuslifeboot.entity.dto.ListDTO;
import com.njit.campuslifeboot.entity.po.LifeInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Axin
 * @since 2022-11-07
 */
@Mapper
public interface LifeInfoMapper extends BaseMapper<LifeInfo> {
    List<ListDTO> getLifeList(@Param("lifeInfoDTO") LifeInfoDTO lifeInfoDTO,@Param("userId") Integer userId);

    List<ListDTO> getLifeListPrivate(@Param("lifeInfoDTO") LifeInfoDTO lifeInfoDTO,@Param("userId") Integer userId);

    List<ListDTO> getSomeOneLifeList(@Param("lifeInfoDTO") LifeInfoDTO lifeInfoDTO);

    List<ListDTO> getFriendsLife(List<String> list);
}
